StatePattern : Context.o State.o CloseState.o OpenState.o RunState.o StopState.o
	g++ -o StatePattern Context.o State.o CloseState.o OpenState.o RunState.o StopState.o

Context.o : Context.h StopState.h State.h
	g++ -c Context.cpp

CloseState.o : CloseState.h OpenState.h RunState.h Context.h State.h
	g++ -c CloseState.cpp

OpenState.o : OpenState.h CloseState.h Context.h State.h
	g++ -c OpenState.cpp

RunState.o : RunState.h StopState.h Context.h State.h
	g++ -c RunState.cpp

StopState.o : StopState.h OpenState.h Context.h State.h
	g++ -c StopState.cpp

clean:
	rm StatePattern Context.o State.o CloseState.o OpenState.o RunState.o StopState.o